<%--
  Created by IntelliJ IDEA.
  User: peikunkun
  Date: 2017/12/30 0030
  Time: 下午 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String contextPath = request.getContextPath();
    String realPath = request.getSession().
            getServletContext().getRealPath("/");
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" +
            request.getServerPort() + contextPath + "/";
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
文件上传的jsp页面<br>
${message}
<form method="post" enctype="multipart/form-data" action='<%=basePath%>fileController/userRegister.do'>
    用户名:<input type="text" name="username"/><br/>
    密 码:<input type="text" name="password"/><br/>
    用户头像:<input type="file" name="image"/><br/>
    <input type="submit" value="提交"/><br/>

</form>
</body>
</html>
